package com.apps.sannotation.constraints;

import java.lang.annotation.*;

/**
 * 注解标明数字范围,最大多少最小多少
 */

@Target({ElementType.PARAMETER,ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface NumRange {

    float min();

    float max();

    String errMsg() default "该数字不合法";
}
